import Vue from 'vue'
import VueRouter from 'vue-router'
// import login from '@/components/page/login/login.vue'
import login from '@/login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    component: login
  },
  {
    path: '/index',
    name: 'index',
    component: () => import("../views/index.vue")
  },
  {
    path: '/askforleave',
    name: 'askForLeave',
    component: () => import("../views/askForLeave.vue")
  },
  {
    path: '/role',
    name: 'role',
    component: () => import("../views/role.vue")
  },
]

var router = new VueRouter({
  routes
})
export default router;